// ============================== 导入依赖 ============================== //

// ============================== 导出配置 ============================== //

export default {
  // color: ['#2B74E5', '#00B07E', '#F3B844', '#949AFF', '#FC6278', '#B8C5D9'],
  tooltip: {
    trigger: 'item',
    formatter(param) {
      return `${param.marker} ${param.name}　${param.value} 次　${param.percent}%`
    },
  },
  title: {
    text: '0',
    subtext: '总违规',
    top: '40%',
    left: '35%',
    padding: 0,
    textAlign: 'center',
    textStyle: {
      lineHeight: 18,
      fontSize: 18,
      fontWeight: 'bold',
      color: '#2C2F33',
    },
    subtextStyle: {
      lineHeight: 14,
      fontSize: 13,
      color: '#555',
    },
  },
  grid: {
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
    containLabel: true,
  },
  legend: {
    top: 'center',
    right: '10%',
    orient: 'vertical',
    icon: 'circle',
    type: 'scroll',
    // textStyle: {
    //   fontFamily: 'monospace',
    // },
  },
  series: [
    {
      name: '违规数量',
      type: 'pie',
      data: [],
      radius: ['65%', '90%'],
      center: ['35%', '50%'],
      label: {
        show: false,
      },
    },
  ],
}
